package com.gzbd.login.jwt;

import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author xlj
 * @version 1.0
 * @description: TODO
 * @date 2024/2/22 14:59
 */
public class JwtToken extends UsernamePasswordToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
